<?php
if(isset($_GET['name'])) {
    $username=$_GET['name'];
   // echo "Hey {$_POST['name']}you rock!";
    mysql_connect("localhost","root","");
    mysql_select_db("susudo");

    $query="SELECT * FROM `users` WHERE `username`='$username' " ;
    $result=mysql_query($query);
    if (mysql_num_rows($result)>0) {
        echo "ERROR";
    }
    else{
        echo "SUCCESS";
    }
    mysql_close();
}


?>
